package com.daniel.design.principles.demo3.after;

/**
 * @ClassName XiBuHardDisk
 * @Description 西部数据硬盘
 * @Author Daniel
 * @Version V1.0.0
 */
public class XiBuHardDisk implements HardDisk{private String data;

    @Override
    public void save(String data) {
        this.data = data;
        System.out.println("西数硬盘保存数据：" + data);
    }

    @Override
    public String read() {
        System.out.println("西数硬盘读取数据：" + data);
        return data;
    }

}
